<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.limp.mine.DateTrimmer"%>
<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="jt.classic.system.user.IUser"%>
<%@ page import="jt.classic.system.ISystem"%>
<%
	String context = jt.classic.system.ISystem.getContextPath();
	IUser user = ISystem.getSessionUser(request);
	
	String id = StringTool.checkString(request.getParameter("id"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>车辆使用申请</title>
</head>
<jsp:include page="../head.jsp"></jsp:include>
<style>
.objqueryset {
	background-image: url(<%=context%>/app/car/images/search.gif) !important;
}
.objselect {
	background-image: url(<%=context%>/app/car/images/add.png) !important;
}
</style>
<script src="<%=context %>/system/tablequery/js/querylistwindow.js"></script>

<script src="<%=context %>/app/car/js/carstemp.js"></script>
<script src="<%=context %>/system/tablequery/js/tablehandler.js"></script>
<body onload="javascript:initTable('APP_CARSQ', '<%=id %>', 'single' , function(json){initFunc(json);})">
<form id="form1" name="form1" method="post"
	action="<%=context%>/app/clxx.do?method=save">
<input type="hidden" id="CARSQ_ID" name="CARSQ_ID" value="">
<input type="hidden" id="CARSQ_UNITID" name="CARSQ_UNITID" value="">
<input type="hidden" id="CARSQ_USERID" name="CARSQ_USERID" value="">
<input type="hidden" id="CARSQ_CLID" name="CARSQ_CLID" value="">
<input type="hidden" id="CARSQ_DJRID" name="CARSQ_DJRID" value="<%=user.id() %>">
<input type="hidden" id="CARSQ_DJR" name="CARSQ_DJR" value="<%=user.iname() %>">
<input type="hidden" id="CARSQ_STATUS" name="CARSQ_STATUS" value="0">
<input type="hidden" id="CARSQ_DATE" name="CARSQ_DATE" value="<%=DateTrimmer.getYMDHMS() %>">
<input type="hidden" id="CARSQ_YY" name="CARSQ_YY" value="">
<div style="margin-top:15px;margin-left:15px;">
<input type="button" class="button0" name="button0"
				value=" 确 定 " onclick="javascript:handleStemp();" />
<input type="button" class="button0" name="button0" value=" 返 回 " onclick="javascript:window.history.back(-1);"/>		
</div>	
<fieldset style="width:800px;margin:15px;">
<legend>车辆使用申请登记</legend>
<table class="tab4edit" width="700" align="center">
	<tr>
		<td class="td1" width="150">&nbsp;用车单位</td>
		<td> <input name="CARSQ_UNIT" class="box3" type="text" id="CARSQ_UNIT" readonly/>
		</td>
	</tr>
	<tr>
		<td class="td1" width="151">&nbsp;用车人</td>
		<td> <input name="CARSQ_USER" class="box3" type="text" id="CARSQ_USER" readonly/>
		</td>
	</tr>
	<tr>
		<td class="td1" width="152">&nbsp;申请车辆</td>
		<td> <input name="CARSQ_CL" class="box3" type="text" id="CARSQ_CL" readonly/>
		</td>
	</tr>
	<tr>
		<td class="td1" width="153">&nbsp;联系电话</td>
		<td> <input name="CARSQ_TEL" class="box3" type="text" id="CARSQ_TEL" readonly/></td>
	</tr>
	<tr>
		<td class="td1" width="154">&nbsp;出车任务</td>
		<td> <input name="CARSQ_CCRW" class="box3" type="text" id="CARSQ_CCRW" readonly/></td>
	</tr>
	<tr>
		<td class="td1" width="155">&nbsp;去向及用途</td>
		<td> <input name="CARSQ_QXYT" class="box3" type="text" id="CARSQ_QXYT" readonly/> </td>
	</tr>
	<tr>
		<td class="td1" width="155">&nbsp;行驶里程</td>
		<td> <input name="CARSQ_XSLC" title="填写数字, 例如: 1.6" class="box3" type="text" id="CARSQ_XSLC" readonly/> </td>
	</tr>
	<tr>
		<td class="td1" width="155">&nbsp;用车开始时间</td>
		<td> <input name="CARSQ_KSSJ" class="box3" type="text" id="CARSQ_KSSJ" readonly/> </td>
	</tr>
	<tr>
		<td class="td1" width="155">&nbsp;用车截至时间</td>
		<td> <input name="CARSQ_JZSH" class="box3" type="text" id="CARSQ_JZSH" readonly/> </td>
	</tr>
	<tr>
		<td class="td1" width="155">&nbsp;用车人数</td>
		<td> <input name="CARSQ_RS" title="填写数字, 例如: 5,不确定请填写0" class="box3" type="text" id="CARSQ_RS" value="0" readonly/> </td>
	</tr>
	<tr>
		<td class="td1" width="155">&nbsp;用车性质</td>
		<td> <select name="CARSQ_XZ" id="CARSQ_XZ" style="width:410px;" disabled>
		<option value="0">公用</option>
		<option value="1">私用</option></td>
	</tr>
	<tr>
		<td class="td1" width="159" valign="top">&nbsp;备注说明</td>
		<td> <textarea name="CARSQ_MEMO" class="box3" id="CARSQ_MEMO" readonly></textarea> </td>
	</tr>
	<tr>
		<td class="td1" width="155">&nbsp;油票</td>
		<td> <input name="STAMP_ID" type="hidden" id="STAMP_ID"/>
		<input name="STAMP_KC" type="hidden" id="STAMP_KC"/>
		<input name="STAMP_NO" class="box3" type="text" id="STAMP_NO" readonly/> <font color="red"><b>*</b></font> 
		<a href="javascript:initQueryWindow('stempselectlist', 'STAMP_ID', $('STAMP_ID').value, setStemp);">选择</a> </td>
	</tr>
	<tr>
		<td class="td1" width="155">&nbsp;数量</td>
		<td> <input name="STAMP_COUNT" title="填写数字, 例如: 5,不确定请填写0" class="box3" type="text" id="STAMP_COUNT" value=""/> <font color="red"><b>*</b></font></td>
	</tr>
</table>
</fieldset>
	</form>
</body>
</html>
